﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;

namespace XinYuan.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IRoleService”。
    [ServiceContract(Name = "IRoleService", Namespace = "http://www.xinyuan.com/")]
    public interface IRoleService
    {
        [OperationContract]
        int AddRole(DevDL.UserLimit.Models.Role role);

        [OperationContract]
        DataSet GetRoles();

        [OperationContract]
        int UpdateRoleDataSet(DataSet ds, int tableIndex);

        [OperationContract]
        int Insert(DevDL.UserLimit.Models.Role role);

        [OperationContract]
        int Update(DevDL.UserLimit.Models.Role role);

        [OperationContract]
        int Delete(int roleId);

        [OperationContract]
        int UpdateFunction(DevDL.UserLimit.Models.Role role);

        [OperationContract]
        string GetFunctionById(int id);

        [OperationContract]
        string GetFunctionByOperatorId(int id);
    }
}
